export default [
  { prop: 'companyName', label: '企业名称' },
  { prop: 'legalPerson', label: '法人代表', hide: true },
  { prop: 'compaynAddress', label: '地址', showOverflowTooltip: true, hide: true },
  { prop: 'phone', label: '电话', hide: true },
  { prop: 'email', label: 'E-Mail', showOverflowTooltip: true, hide: true },
  { prop: 'totalOrder', label: '订单数' },
  { prop: 'amount', label: '信用额' },
  { prop: 'useAmount', label: '已用额度' },
  { prop: 'freezeAmount', label: '冻结额度' },
  { prop: 'totalOrderMoney', label: '交易额' },
  { prop: 'totalkm', label: '总里程' },
  { prop: 'discount', label: '折扣' },
  { prop: 'fixedPrice', label: '一口价' },
  { prop: 'status', label: '企业状态', formatter: function(row, colum) {
    return row.status === '1' ? '正常' : '黑名单'
  } },
  { prop: 'createTime', label: '创建时间', formatter: 'date', showOverflowTooltip: true },
  { type: 'handle', width: '200', buttons: [
    { text: '详情', type: 'info' },
    { text: '禁用', type: 'danger', isShow: function(row, rowIndex) { return row.status === '1' } },
    { text: '启用', type: 'success', isShow: function(row, rowIndex) { return row.status === '2' } }
  ]
  }
]

